|
OPEN TO READ
This command will open a file, ready for reading.
OPEN TO READ File Number, Filename
File Number
Integer
The file number to open, using a file number range of 1 through to 32
Filename
String
The file name to open
This command does not return a value.
The file must exist or the command will fail. You can open up to 32 files at the same time, using a file number range of 1 through to 32.
cls
open to read 1,"data.dat"
if file open(1)=1
read byte 1,a
print "value read = "+str$(a)
endif
close file 1
do
loop
end
FILE Commands Menu
Index
|